/*
 * @Author: xiehangyun 
 * @Date: 2025-02-21 18:31:20 
 * @Last Modified by: xiehangyun
 * @Last Modified time: 2025-02-22 09:50:52
 */


// graffitiStore.ts

import { observable, configure } from "mobx";
configure({ enforceActions: "never" });
const graffitiStore = observable({

  //画笔大小
  brushSize: 10,
  setBrushSize(brushSize: number) {
    this.brushSize = brushSize;
  },

  //画笔颜色
  brushColor: '#000000',
  setBrushColor(brushColor: string) {
    this.brushColor = brushColor;
  },

  //画笔类型
  brushType: 'pencil' as 'pencil' | 'eraser',
  setBrushType(brushType: 'pencil' | 'eraser') {
    this.brushType = brushType;
  }


}, {}, { deep: false });

export default graffitiStore;